package owl2vowl.server;

import java.io.File;
import javax.servlet.ServletContext;
import org.springframework.stereotype.Component;
import org.springframework.web.context.ServletContextAware;

@Component
public class ContextPath implements ServletContextAware {
	private static String contextPath;

	public static String getContextPath() {
		return contextPath;
	}

	public void setServletContext(ServletContext servletContext) {
		contextPath = servletContext.getRealPath(File.separator) + File.separator;
	}
}